// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: NonEscapeSequence is not EscapeCharacter
es5id: 7.8.4_A4.3_T7
description: "EscapeCharacter :: SingleEscapeCharacter :: one of b f n r t v"
---*/

//CHECK#bfnrtv
function Test() {
    if ("b" === "\b") {
      throw new Test262Error('#b');
    }

    if ("f" === "\f") {
      throw new Test262Error('#f');
    }

    if ("n" === "\n") {
      throw new Test262Error('#n');
    }

    if ("r" === "\r") {
      throw new Test262Error('#r');
    }

    if ("t" === "\t") {
      throw new Test262Error('#t');
    }

    if ("v" === "\v") {
      throw new Test262Error('#v');
    }
}

// preheat
const NUMBER_OF_PREHEAT = 1;
for (let i = 0; i < NUMBER_OF_PREHEAT; i++) {
    Test();
}

ArkTools.jitCompileAsync(Test);
assert.sameValue(ArkTools.waitJitCompileFinish(Test), true, '[JIT] JIT disabled.');

// test
const NUMBER_OF_TEST = 1; // or 2
for (let i = 0; i < NUMBER_OF_PREHEAT; i++) {
    Test();
}
